package cn.microvideo.videopf.camera.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import java.util.Date;

/**
 * CDN确认的摄像机列表响应类
 *
 * @author 何欢-oreo
 * @version 1.0.0
 * @date 2020/8/20 17:41
 */
@Data
public class CdnConfirmCameraResp {
    @ExcelIgnore
    private Integer id;

    @ExcelProperty(value = "摄像机编码")
    @ColumnWidth(value = 50)
    private String cameraNum;

    @ExcelProperty(value = "摄像机名称")
    @ColumnWidth(value = 80)
    private String cameraName;

    @ExcelProperty(value = "路线编码")
    @ColumnWidth(value = 20)
    private String roadCode;

    @ExcelProperty(value = "桩号")
    @ColumnWidth(value = 20)
    private String mileage;

    @ExcelProperty(value = "经度")
    @ColumnWidth(value = 20)
    private String longitude;

    @ExcelProperty(value = "纬度")
    @ColumnWidth(value = 20)
    private String latitude;

    @ExcelProperty(value = "省份")
    @ColumnWidth(value = 20)
    private String provinceName;

    @ExcelProperty(value = "路公司")
    @ColumnWidth(value = 80)
    private String departmentName;

    @ExcelProperty(value = "在线时长（小时）")
    @ColumnWidth(value = 30)
    private Double onlineDuration;

    @ExcelProperty(value = "摄像机状态")
    @ColumnWidth(value = 20)
    private String cameraStatus;

    @ExcelProperty(value = "日期")
    @ColumnWidth(value = 20)
    @DateTimeFormat(value = "yyyy-MM-dd")
    private Date gmtCreate;

    @ExcelIgnore
    private Integer updateTimes;
}
